/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: Dog
 * Author:   666
 * Date:     2020/6/19 23:48
 * Description: 继承
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_004;

/**
 * @Classname Dog
 * @Description TODO
 * @Date 2020/6/19 23:48
 * @Created by 666
 */
public class Dog extends Pet {
    private String sound;

    public Dog() {
        System.out.println("dog无参的构造方法");
    }

    public Dog(String sound) {
        this();
        this.sound = sound;
    }

    public Dog(String name, String address, String gender, String sound) {
        super(name, address, gender);
        this.sound = sound;
    }

    public String getSound() {
        return sound;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }


    @Override
    protected void play() {
        System.out.println("son is play");
    }
}
